import request from './request'

// 默认首页信息
export const HomeApi = (params) => request.get("/6666", {params})

// 登录接口
export const LoginApi = (params) => request.post('/1024/login', params)

// 注册接口
export const RegisterApi = (params) => request.post("/1024/register", params)

// 进入练习页面(题目分类列表)
export const TimuApi = (params) => request.get(`/1314/${params.actionCode}/${params.testType}`)

// 切换学科页面数据渲染
export const ChangeSubApi = (params) => request.get(`/6666/${params.actionCode}`)

// 侧边栏切换学科
export const FieldApi = (params) => request.get(`/6666/field`)

// 获取题目列表信息
export const PracticeApi = (params) => request.post("/1314", params)
 
// 提交答题内容
export const AnswerApi = (params) => request.put("/1314", params)